import tensorflow as tf

a = tf.reshape(tf.range(9), [3, 3])
print(a)

b = tf.pad(a, [[0, 0], [0, 0]])
print(b)

c = tf.pad(a, [[1, 0], [0, 0]])
print(c)

d = tf.pad(a, [[1, 1], [1, 1]])
print(d)

a = tf.random.normal([10, 28, 28, 3])
b = tf.pad(a, [[0, 0], [2, 2], [2, 2], [0, 0]])
print(a.shape)
print(b.shape)
